import json
import ast
s = r'''```json
{
    "position": "片段1",
    "code": "for (let i = 0; i < 0; i++) {\n  console.info('Hello World.');\n}",
    "result": ["Failed"],
    "is_complete": false,
    "syntax_errors": ["无语法错误"],
    "missing_definitions": [],
    "suggested_fixes": ["循环条件i < 0永远为假，导致循环体无法执行，建议检查循环条件是否设置正确"],
    "use_html": ["未使用前面提供的HTML文件进行判断"]
}
```
'''
a = fr'{s[8:-4]}'

print(a)
j = json.loads(a)
print(j)
print(j['position'])
print(type(j))

